<script>
  import { count, getCount } from '@/store/index.Store.js'

  function handleCountAdd() {
    count.update((v) => v + 1)
    console.log(2)
  }
  function countDecrement() {
    count.update((v) => v - 1)
  }
</script>

<span>count: {$count}</span>

<button on:click={handleCountAdd}>count +</button>
<button on:click={countDecrement}>count -</button>
<!-- <button on:click={() => unCountValue()}>unCountValue</button> -->
